package com.example.lemonservice.entitiy;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.lemonservice.enums.DeviceStatusEnum;
import com.example.lemonservice.enums.DeviceTypeEnum;
import lombok.Data;
import java.math.BigDecimal;

@Data
@TableName("device")
public class Device {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String name;
    private String deviceAddress;
    private DeviceTypeEnum type;
    private BigDecimal maxValue;
    private BigDecimal minValue;
    private String unit;
    private DeviceStatusEnum status;
    private BigDecimal value;
}
